package com.sdruixinggroup.mondayb2b.models;

import java.util.List;

/**
 * Created by Administrator on 2017/12/17.
 */

public class QuickCalculate {

    /**
     * err_code : 0
     * err_msg : OK
     * timestamp : 1513519647
     * calculate_result : {"address":{"address_id":71,"consignee":"测得","phone":"123585666996","province_id":1,"city_id":10,"county_id":29,"street":"3666","is_default":0,"province_name":"北京市","city_name":"市辖区","county_name":"东城区"},"total_money":33,"coupon_free_money":0,"promotion_free_money":0,"pay_money":33,"merchants":[{"type":2,"longitude":120.744028,"latitude":31.272442,"merchant_id":7,"thumb":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/cad1236aa7af95365665ec973154783e.png","name":"二级推广商店铺","shopkeeper":"张先生","phone":"18501701762","province_id":11,"city_id":73296,"county_id":89082,"province_name":"江苏省","city_name":"苏州市","county_name":"吴江区","street":"汉嘉大厦","saled_count":36,"goods_count":0}],"shopping_carts":[{"goods":{"goods_id":3,"type":1,"name":"超级化肥","goods_sn":"232040505083","thumb":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/920b51f62cf18586371f60f642b71586.png","content":"<p><img src=\"https://yingdd.oss-cn-hangzhou.aliyuncs.com/012e96051aca09b82dd9fbf34bb6c3b4.png\" data-mce-src=\"https://yingdd.oss-cn-hangzhou.aliyuncs.com/012e96051aca09b82dd9fbf34bb6c3b4.png\" style=\"float: left;\" data-mce-style=\"float: left;\">哈哈哈哈哈哈<\/p>","original_price":33,"sale_price":33,"stock":0,"praise_rate":0,"comment_count":0,"saled_count":4},"goods_id":3,"quantity":1}],"invoice_desc":"发票说明发票说明发票说明发票说明发票说明发票说明发票说明"}
     */

    private int err_code;
    private String err_msg;
    private int timestamp;
    private CalculateResultBean calculate_result;

    public int getErr_code() {
        return err_code;
    }

    public void setErr_code(int err_code) {
        this.err_code = err_code;
    }

    public String getErr_msg() {
        return err_msg;
    }

    public void setErr_msg(String err_msg) {
        this.err_msg = err_msg;
    }

    public int getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(int timestamp) {
        this.timestamp = timestamp;
    }

    public CalculateResultBean getCalculate_result() {
        return calculate_result;
    }

    public void setCalculate_result(CalculateResultBean calculate_result) {
        this.calculate_result = calculate_result;
    }

    public static class CalculateResultBean {
        /**
         * address : {"address_id":71,"consignee":"测得","phone":"123585666996","province_id":1,"city_id":10,"county_id":29,"street":"3666","is_default":0,"province_name":"北京市","city_name":"市辖区","county_name":"东城区"}
         * total_money : 33
         * coupon_free_money : 0
         * promotion_free_money : 0
         * pay_money : 33
         * merchants : [{"type":2,"longitude":120.744028,"latitude":31.272442,"merchant_id":7,"thumb":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/cad1236aa7af95365665ec973154783e.png","name":"二级推广商店铺","shopkeeper":"张先生","phone":"18501701762","province_id":11,"city_id":73296,"county_id":89082,"province_name":"江苏省","city_name":"苏州市","county_name":"吴江区","street":"汉嘉大厦","saled_count":36,"goods_count":0}]
         * shopping_carts : [{"goods":{"goods_id":3,"type":1,"name":"超级化肥","goods_sn":"232040505083","thumb":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/920b51f62cf18586371f60f642b71586.png","content":"<p><img src=\"https://yingdd.oss-cn-hangzhou.aliyuncs.com/012e96051aca09b82dd9fbf34bb6c3b4.png\" data-mce-src=\"https://yingdd.oss-cn-hangzhou.aliyuncs.com/012e96051aca09b82dd9fbf34bb6c3b4.png\" style=\"float: left;\" data-mce-style=\"float: left;\">哈哈哈哈哈哈<\/p>","original_price":33,"sale_price":33,"stock":0,"praise_rate":0,"comment_count":0,"saled_count":4},"goods_id":3,"quantity":1}]
         * invoice_desc : 发票说明发票说明发票说明发票说明发票说明发票说明发票说明
         */

        private Address.AddressesBean.DataBean address;
        private double total_money;
        private double coupon_free_money;
        private double promotion_free_money;
        private double pay_money;
        private String invoice_desc;
        private List<MerchantsBean> merchants;
        private List<ShoppingCartsBean> shopping_carts;

        public Address.AddressesBean.DataBean getAddress() {
            return address;
        }

        public void setAddress(Address.AddressesBean.DataBean address) {
            this.address = address;
        }

        public double getTotal_money() {
            return total_money;
        }

        public void setTotal_money(double total_money) {
            this.total_money = total_money;
        }

        public double getCoupon_free_money() {
            return coupon_free_money;
        }

        public void setCoupon_free_money(double coupon_free_money) {
            this.coupon_free_money = coupon_free_money;
        }

        public double getPromotion_free_money() {
            return promotion_free_money;
        }

        public void setPromotion_free_money(int promotion_free_money) {
            this.promotion_free_money = promotion_free_money;
        }

        public double getPay_money() {
            return pay_money;
        }

        public void setPay_money(int pay_money) {
            this.pay_money = pay_money;
        }

        public String getInvoice_desc() {
            return invoice_desc;
        }

        public void setInvoice_desc(String invoice_desc) {
            this.invoice_desc = invoice_desc;
        }

        public List<MerchantsBean> getMerchants() {
            return merchants;
        }

        public void setMerchants(List<MerchantsBean> merchants) {
            this.merchants = merchants;
        }

        public List<ShoppingCartsBean> getShopping_carts() {
            return shopping_carts;
        }

        public void setShopping_carts(List<ShoppingCartsBean> shopping_carts) {
            this.shopping_carts = shopping_carts;
        }



        public static class MerchantsBean {
            /**
             * type : 2
             * longitude : 120.744028
             * latitude : 31.272442
             * merchant_id : 7
             * thumb : https://yingdd.oss-cn-hangzhou.aliyuncs.com/cad1236aa7af95365665ec973154783e.png
             * name : 二级推广商店铺
             * shopkeeper : 张先生
             * phone : 18501701762
             * province_id : 11
             * city_id : 73296
             * county_id : 89082
             * province_name : 江苏省
             * city_name : 苏州市
             * county_name : 吴江区
             * street : 汉嘉大厦
             * saled_count : 36
             * goods_count : 0
             */

            private int type;
            private double longitude;
            private double latitude;
            private int merchant_id;
            private String thumb;
            private String name;
            private String shopkeeper;
            private String phone;
            private int province_id;
            private int city_id;
            private int county_id;
            private String province_name;
            private String city_name;
            private String county_name;
            private String street;
            private int saled_count;
            private int goods_count;

            public int getType() {
                return type;
            }

            public void setType(int type) {
                this.type = type;
            }

            public double getLongitude() {
                return longitude;
            }

            public void setLongitude(double longitude) {
                this.longitude = longitude;
            }

            public double getLatitude() {
                return latitude;
            }

            public void setLatitude(double latitude) {
                this.latitude = latitude;
            }

            public int getMerchant_id() {
                return merchant_id;
            }

            public void setMerchant_id(int merchant_id) {
                this.merchant_id = merchant_id;
            }

            public String getThumb() {
                return thumb;
            }

            public void setThumb(String thumb) {
                this.thumb = thumb;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getShopkeeper() {
                return shopkeeper;
            }

            public void setShopkeeper(String shopkeeper) {
                this.shopkeeper = shopkeeper;
            }

            public String getPhone() {
                return phone;
            }

            public void setPhone(String phone) {
                this.phone = phone;
            }

            public int getProvince_id() {
                return province_id;
            }

            public void setProvince_id(int province_id) {
                this.province_id = province_id;
            }

            public int getCity_id() {
                return city_id;
            }

            public void setCity_id(int city_id) {
                this.city_id = city_id;
            }

            public int getCounty_id() {
                return county_id;
            }

            public void setCounty_id(int county_id) {
                this.county_id = county_id;
            }

            public String getProvince_name() {
                return province_name;
            }

            public void setProvince_name(String province_name) {
                this.province_name = province_name;
            }

            public String getCity_name() {
                return city_name;
            }

            public void setCity_name(String city_name) {
                this.city_name = city_name;
            }

            public String getCounty_name() {
                return county_name;
            }

            public void setCounty_name(String county_name) {
                this.county_name = county_name;
            }

            public String getStreet() {
                return street;
            }

            public void setStreet(String street) {
                this.street = street;
            }

            public int getSaled_count() {
                return saled_count;
            }

            public void setSaled_count(int saled_count) {
                this.saled_count = saled_count;
            }

            public int getGoods_count() {
                return goods_count;
            }

            public void setGoods_count(int goods_count) {
                this.goods_count = goods_count;
            }
        }

        public static class ShoppingCartsBean {
            /**
             * goods : {"goods_id":3,"type":1,"name":"超级化肥","goods_sn":"232040505083","thumb":"https://yingdd.oss-cn-hangzhou.aliyuncs.com/920b51f62cf18586371f60f642b71586.png","content":"<p><img src=\"https://yingdd.oss-cn-hangzhou.aliyuncs.com/012e96051aca09b82dd9fbf34bb6c3b4.png\" data-mce-src=\"https://yingdd.oss-cn-hangzhou.aliyuncs.com/012e96051aca09b82dd9fbf34bb6c3b4.png\" style=\"float: left;\" data-mce-style=\"float: left;\">哈哈哈哈哈哈<\/p>","original_price":33,"sale_price":33,"stock":0,"praise_rate":0,"comment_count":0,"saled_count":4}
             * goods_id : 3
             * quantity : 1
             */

            private GoodsBean goods;
            private int goods_id;
            private int quantity;

            public GoodsBean getGoods() {
                return goods;
            }

            public void setGoods(GoodsBean goods) {
                this.goods = goods;
            }

            public int getGoods_id() {
                return goods_id;
            }

            public void setGoods_id(int goods_id) {
                this.goods_id = goods_id;
            }

            public int getQuantity() {
                return quantity;
            }

            public void setQuantity(int quantity) {
                this.quantity = quantity;
            }

            public static class GoodsBean {
                /**
                 * goods_id : 3
                 * type : 1
                 * name : 超级化肥
                 * goods_sn : 232040505083
                 * thumb : https://yingdd.oss-cn-hangzhou.aliyuncs.com/920b51f62cf18586371f60f642b71586.png
                 * content : <p><img src="https://yingdd.oss-cn-hangzhou.aliyuncs.com/012e96051aca09b82dd9fbf34bb6c3b4.png" data-mce-src="https://yingdd.oss-cn-hangzhou.aliyuncs.com/012e96051aca09b82dd9fbf34bb6c3b4.png" style="float: left;" data-mce-style="float: left;">哈哈哈哈哈哈</p>
                 * original_price : 33
                 * sale_price : 33
                 * stock : 0
                 * praise_rate : 0
                 * comment_count : 0
                 * saled_count : 4
                 */

                private int goods_id;
                private int type;
                private String name;
                private String goods_sn;
                private String thumb;
                private String content;
                private double original_price;
                private double sale_price;
                private int stock;
                private int praise_rate;
                private int comment_count;
                private int saled_count;

                public int getGoods_id() {
                    return goods_id;
                }

                public void setGoods_id(int goods_id) {
                    this.goods_id = goods_id;
                }

                public int getType() {
                    return type;
                }

                public void setType(int type) {
                    this.type = type;
                }

                public String getName() {
                    return name;
                }

                public void setName(String name) {
                    this.name = name;
                }

                public String getGoods_sn() {
                    return goods_sn;
                }

                public void setGoods_sn(String goods_sn) {
                    this.goods_sn = goods_sn;
                }

                public String getThumb() {
                    return thumb;
                }

                public void setThumb(String thumb) {
                    this.thumb = thumb;
                }

                public String getContent() {
                    return content;
                }

                public void setContent(String content) {
                    this.content = content;
                }

                public double getOriginal_price() {
                    return original_price;
                }

                public void setOriginal_price(int original_price) {
                    this.original_price = original_price;
                }

                public double getSale_price() {
                    return sale_price;
                }

                public void setSale_price(int sale_price) {
                    this.sale_price = sale_price;
                }

                public int getStock() {
                    return stock;
                }

                public void setStock(int stock) {
                    this.stock = stock;
                }

                public int getPraise_rate() {
                    return praise_rate;
                }

                public void setPraise_rate(int praise_rate) {
                    this.praise_rate = praise_rate;
                }

                public int getComment_count() {
                    return comment_count;
                }

                public void setComment_count(int comment_count) {
                    this.comment_count = comment_count;
                }

                public int getSaled_count() {
                    return saled_count;
                }

                public void setSaled_count(int saled_count) {
                    this.saled_count = saled_count;
                }
            }
        }
    }
}
